#include "StdAfx.h"
#include "Location.h"

Location::Location(string description)
{
	this->Description = description;
	Commands.push_back(new CMDQuit());
	Commands.push_back(new CMDLook());
	Commands.push_back(new CMDMove());
}

void Location::Parse(string command)
{
	for (unsigned int i = 0; i < Commands.size(); i++)
	{
		if (Commands[i]->Parse(command))
		{
			return;
		}
	}
}

